#include <uapi/linux/ptrace.h>
#include <linux/mm.h>

int kprobe__do_mmap(struct pt_regs *ctx

        ) {

        bpf_trace_printk("alloc entered start, size = %u\\n", 0);

        return 0;
}

int kretprobe__do_mmap(struct pt_regs *ctx) {
        bpf_trace_printk("do_mmap exit, addr = %lx\\n", PT_REGS_RC(ctx));
        return 0;
}

int kprobe__do_munmap(struct pt_regs *ctx
        ) {
        
        bpf_trace_printk("do_munmap, address = %lx\\n",
                         ctx);

        return 0;
}